package com.banmao.mall.mapper;

import com.banmao.mall.model.bo.admin.user.CollectListBO;
import com.banmao.mall.model.bo.client.collect.AddorDeleteBO;
import com.banmao.mall.model.pojo.Collect;
import com.banmao.mall.model.vo.admin.user.CollectVO;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Pattern;
import java.util.List;

public interface CollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Collect record);

    int insertSelective(Collect record);

    Collect selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<CollectVO> selectCollectByCondition(CollectListBO collectListBO);

    Integer selectCountByUserIDAndGoodsID(@Param("userId") Integer userId, @Param("goodsId") Integer goodsId);

    List<com.banmao.mall.model.vo.client.collect.CollectVO> selectGoodsByUserID(com.banmao.mall.model.bo.client.collect.CollectListBO collectListBO);

    Boolean selectExistDeleted(AddorDeleteBO addorDeleteBO);

    int updateWithDeleted(AddorDeleteBO addorDeleteBO);

    int insertCollectByValueId(AddorDeleteBO addorDeleteBO);

}